package com.justnow.bilibili201901;

import java.util.Scanner;

/**
 * @author justnow
 * Created on 2020-09-03
 * Description
 */
public class Solution01 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        String[] s = str.split(" ");
        int length = s.length;
        StringBuilder stringBuilder = new StringBuilder();
        for (int i = length - 1; i >= 0; i--) {
            stringBuilder.append(s[i] + " ");
        }
        System.out.println(stringBuilder.toString());

    }
}
